// subpkg/tixing-test/tixing-test.js
const app = getApp()
Page({
    data:{
        // tixingName:'',
        tixingType:'',
        name:''
    },

    onLoad(options){
       console.log(options);
        let name = options.name
        let index = options.tx
       this.setData({tixingType:index,name})
        // let userid = wx.getStorageSync('userID')

        // wx.request({
        //   url: app.globalData.baseUrl+`/question/type/${userid}`,
        //   method:"GET",
        //   success:(res)=>{
        //     //   console.log(res.data[index -1 ].questiontype);
        //       this.setData({
        //         //   tixingName:res.data[index -1 ].questiontype,
        //         //   name
        //         })
        //   }
        // })
    },


    jump(e){
        // console.log(e);
        //   console.log(e.currentTarget.dataset.tixing);
        let data = e.currentTarget.dataset.index
        console.log(data);
          wx.navigateTo({
            url: `/subpkg/tixing-start/tixing-start?tx=${data}`,
          })
      }
})